<script>
$(document).ready(function(){
	k_initcollectionbtn();
});
</script>	
<php>
if(empty($stype_collect))$stype_collect = empty($_REQUEST['stype'])?Dict::TOBESEND:$_REQUEST['stype'];
//echo $stype_collect;
$collectpage = service('Collect')->search4User($stype_collect,$_SESSION['mid'],12);
if(empty($collectpage)||empty($collectpage['data'])){
</php>
	<div style="width:100%;text-align:center;margin-top:15px;">
		<php>$alert_message=$_REQUEST['stype']==Dict::TOBESEND?"无想要的礼物":"无收藏的礼物！";</php>
		<include file="../Public/alert_box.html" />
	</div>

<php>}else{</php>	

				<!--第一行商品，共四个-->
				<div class="list_line"  style="margin-top:10px;margin-left:10px;border:0px">
				    <php>$index = -1;</php>
				    <volist id="cvo" name="collectpage['data']">
				    	<php>
				    	$index = $index+1;
				    	$vo = $collectpage['extData'][$cvo['shelf_id']];
				    	</php>
				    	<php>if($index%4==0){</php>
				    		<div id="clear"></div>
				    	</div>
				    	<div class="list_line" style="margin-top:10px;margin-left:10px;">
				    	<php>}</php>
				    	
				      	<include file="../Product/Tpl/default/Public/product_brief_detail_box.html" />
				      	
				   	</volist>
					<div id="clear"></div>
				</div>
				    
				<div class="page_box">{$collectpage['html']}</div>

<php>}</php>			  